package com.example.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author krystal
 * @date 2023/3/7 21:15
 */
@Controller
@ResponseBody
@RequestMapping("/art")
@Slf4j
public class ArticleController {

    //private static final Logger logger= LoggerFactory.getLogger(ArticleController.class);

    @RequestMapping("/hi")
    public String sayHi(){
        log.trace("我是slf4j的trace");
        log.debug("我是slf4j的debug");
        log.info("我是slf4j的info");
        return "hi,art";
    }
}
